package com.yklab.library.app.domain;

/**
 * Created by 59153 on 2018/3/20.
 * 描述：通用用户user对象
 */

public class CommonUser {
    //用户密码
    private String password;
    //用户账号
    private String userId;
    //用户电话号码
    private String name = "";
    //用户头像
    private String avator = "";
    //0：一般用户 1：qq登录用户 2：微信登录用户
    private int type = 0;
    //身份证号码
    private String id_card = "";

    //用于唯一标识用户身份（每一个openid与QQ号码对应）。
    public String openid;
    //access_token的有效时间，在有效期内可以发起业务请求，过期失效。
    public String expires_in;
    //用户进行应用邀请、分享、支付等基本业务请求的凭据。
    public String access_token;


    public CommonUser() {
    }

    public CommonUser(String userId, String password) {
        this.password = password;
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvator() {
        return avator;
    }

    public void setAvator(String avator) {
        this.avator = avator;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(String expires_in) {
        this.expires_in = expires_in;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }
}
